
*This file is for use with the full dataset after having been merged with the proxy datasets to implement the full tests described in the article and appendix


************************TESTS AND DATA IN THE BODY OF THE MANUSCRIPT************************

*Correlation matrix of conflict types (Body Text)
corr proxyconflict mid forcemid fatalmid war

*Descriptive Statistics for Conflict Types in All Years (Body Text)
sum proxyconflict
sum mid
sum forcemid
sum fatalmid
sum war

*Descriptive Statistics for Conflict Types 1975-2000 (Body Text)
sum proxyconflict if year>1974
sum mid if year>1974
sum forcemid if year>1974
sum fatalmid if year>1974
sum war if year>1974 

 *Reporting conflict frequencies (Figure 2, produced in Excel)
 sum war
 sum fatalmid
 sum forcemid
 sum mid
 sum proxyconflict
 
 sum war if year>1974
 sum fatalmid if year>1974
 sum forcemid if year>1974
 sum mid if year>1974
 sum proxyconflict if year>1974
 
 sum war if contig==0
 sum fatalmid if contig==0
 sum forcemid if contig==0
 sum mid if contig==0
 sum proxyconflict if contig==0
 
 sum war if symmetricnuke==1
 sum fatalmid if symmetricnuke==1
 sum forcemid if symmetricnuke==1
 sum mid if symmetricnuke==1
 sum proxyconflict if symmetricnuke==1
 
 sum war if coldwar!=0
 sum fatalmid if coldwar!=0
 sum forcemid if coldwar!=0
 sum mid if coldwar!=0
 sum proxyconflict if coldwar!=0
 
*Creating line graph of average frequency of proxy conflicts and MIDs by year (Figure 3)
bysort year: egen average_proxyconflict = mean(proxyconflict)
bysort year: egen average_mid = mean(mid)
twoway line average_proxyconflict average_mid year if year>1974, sort

*Producing conflict numbers based on participation by P5 state (Body Text)
sum proxyconflict if proxyconflict==1 & p5both==1
sum proxyconflict if proxyconflict==1 & p5both==0 & p5any==1
sum proxyconflict if proxyconflict==1 & p5any==0
sum mid if mid==1 & p5both==1
sum mid if mid==1 & p5both==0 & p5any==1
sum mid if mid==1 & p5any==0
sum forcemid if forcemid==1 & p5both==1
sum forcemid if forcemid==1 & p5both==0 & p5any==1
sum forcemid if forcemid==1 & p5any==0
sum fatalmid if fatalmid==1 & p5both==1
sum fatalmid if fatalmid==1 & p5both==0 & p5any==1
sum fatalmid if fatalmid==1 & p5any==0
sum war if war==1 & p5both==1
sum war if war==1 & p5both==0 & p5any==1
sum war if war==1 & p5any==0

*Summary statistics of key variables (Table 2)
sum proxyconflict proxyconflictonset asymmetricnuke symmetricnuke powerprojection anycolonizer personalist1 personalist2

*Bivariate analysis and chi-squared test (Table 3)
sum proxyconflict if asymmetricnuke==0 & symmetricnuke==0 
tab asymmetricnuke proxyconflict if symmetricnuke!=1, chi row
tab symmetricnuke  proxyconflict if asymmetricnuke!=1, chi row
tab symmetricnuke  proxyconflict if asymmetricnuke==1 | symmetricnuke==1 , chi row

*Logit tests (Table 4, Column 1)
logit proxyconflict asymmetricnuke symmetricnuke, cluster(dyadid) or
estimates store proxybare
outreg2 using table4.doc, replace ctitle(Odds ratio) eform

*Logit tests with conflict controls (Table 4, Column 2)
logit proxyconflict asymmetricnuke symmetricnuke prev10yearmids, cluster(dyadid) or
estimates store proxylogitconflict
outreg2 using table4.doc, append ctitle(Odds ratio) eform

*Logit tests with conflict and state and time controls (Table 4, Column 3)
logit proxyconflict asymmetricnuke symmetricnuke logcaprat atopally leastconstrainedpolity leastconstrainedtrade lncapdist contig anymajorpower igomem prev10yearmids proxy_t proxy_t2 proxy_t3, cluster(dyadid) or
estimates store proxylogitstandard
outreg2 using table4.doc, append ctitle(Odds ratio) eform

*Logit tests with conflict and state and time controls (Table 4, Column 4)
logit proxyconflict asymmetricnuke symmetricnuke logcaprat atopally leastconstrainedpolity leastconstrainedtrade lncapdist contig anymajorpower igomem prev10yearmids anycolonizer powerprojection personalist1 personalist2 proxy_t proxy_t2 proxy_t3, cluster(dyadid) or
estimates store proxylogitfull
outreg2 using table4.doc, append ctitle(Odds ratio) eform

*Logit tests with conflict and state and time controls (Table 4, Column 5)
logit proxyconflictonset asymmetricnuke symmetricnuke logcaprat atopally leastconstrainedpolity leastconstrainedtrade lncapdist contig anymajorpower igomem prev10yearmids anycolonizer powerprojection personalist1 personalist2 proxy_t proxy_t2 proxy_t3, cluster(dyadid) or
estimates store proxylogitfullonset
outreg2 using table4.doc, append ctitle(Odds ratio) eform

*Logit tests with conflict and state and time controls (Table 4, Column 6)
logit censored_proxyconflictonset asymmetricnuke symmetricnuke logcaprat atopally leastconstrainedpolity leastconstrainedtrade lncapdist contig anymajorpower igomem prev10yearmids anycolonizer powerprojection personalist1 personalist2 proxy_t proxy_t2 proxy_t3, cluster(dyadid) or
estimates store proxylogitfullonsetcensor
outreg2 using table4.doc, append ctitle(Odds ratio) eform

*Fixed effect logit tests with conflict and state and time controls (Table 4, Column 7)
xtlogit proxyconflict asymmetricnuke symmetricnuke logcaprat atopally leastconstrainedpolity leastconstrainedtrade lncapdist contig anymajorpower igomem prev10yearmids powerprojection personalist1 personalist2 i.year, fe
estimates store fefull
outreg2 using table4.doc, append ctitle(Odds ratio) eform

*Producing Figure 4 based on regression analysis from Table 4
coefplot (proxybare, label(Basic)) || (proxylogitconflict, label(+ Conflict Controls)) || (proxylogitfull, label(+ State Controls)), coeflabels(asymmetricnuke="Asymmetric" symmetricnuke="Symmetric", notick labgap(2)) vertical keep(asymmetricnuke symmetricnuke) byopts(compact rows(1)) yline(1) eform ytitle(Odds Ratio) yscale(log)  graphregion(fcolor(white)) ylabel(1 "1" 2 "2" 5 "5" 10 "10" 25 "25" 50 "50")

*Country-specific tests for India, Pakistan, and South Africa (Figure 5)
*See Excel spreadsheet

*Logit tests with conflict, time, and other state controls for all forms of conflict excluding war (Figure 6)
logit proxyconflict asymmetricnuke symmetricnuke logcaprat atopally leastconstrainedpolity leastconstrainedtrade lncapdist contig anymajorpower igomem prev10yearmids anycolonizer powerprojection personalist1 personalist2 proxy_t proxy_t2 proxy_t3, cluster(dyadid)
estimates store proxylogit
logit mid asymmetricnuke symmetricnuke logcaprat atopally leastconstrainedpolity leastconstrainedtrade lncapdist contig anymajorpower igomem prev10yearmids personalist1 personalist2 mid_t mid_t2 mid_t3, cluster(dyadid)
estimates store midlogit
logit forcemid asymmetricnuke symmetricnuke logcaprat atopally leastconstrainedpolity leastconstrainedtrade lncapdist contig anymajorpower igomem prev10yearmids personalist1 personalist2 forcemid_t forcemid_t2 forcemid_t3, cluster(dyadid)
estimates store forcelogit
logit fatalmid asymmetricnuke symmetricnuke logcaprat atopally leastconstrainedpolity leastconstrainedtrade lncapdist contig anymajorpower igomem prev10yearmids personalist1 personalist2 fatalmid_t fatalmid_t2 fatalmid_t3, cluster(dyadid)
estimates store fatallogit
logit war asymmetricnuke symmetricnuke logcaprat atopally leastconstrainedpolity leastconstrainedtrade lncapdist contig anymajorpower igomem prev10yearmids personalist1 personalist2 war_t war_t2 war_t3, cluster(dyadid)
estimates store warlogit
coefplot (proxylogit, ciopts(lcolor(red)) mlcolor(red) mfcolor(red) label(Proxy Conflict)) (midlogit,   ciopts(lcolor(gs12)) mlcolor(gs12) mfcolor(gs12) label(MID)) (forcelogit,   ciopts(lcolor(gs8)) mlcolor(gs8) mfcolor(gs8) label(Force MID)) (fatallogit,   ciopts(lcolor(gs5)) mlcolor(gs5) mfcolor(gs5) label(Fatal MID)), keep(asymmetricnuke symmetricnuke) xline(1) eform xtitle(Odds ratio) xscale(log) graphregion(fcolor(white)) coeflabels(asymmetricnuke="Asymmetric Nuke" symmetricnuke="Symmetric Nuke", notick labgap(2)) xlabel(0 "0" 1 "1" 2 "2" 5 "5" 10 "10" 25 "25") 


***********ROBUSTNESS TESTS AND ADDITIONAL MEASUREMENTS (APPENDIX)***********

*Logit tests (Table A1, Column 1)
logit proxyconflict asymmetricnuke symmetricnuke, cluster(dyadid) or
estimates store proxybare
outreg2 using appendixa1.doc, replace ctitle(Odds ratio) eform

*Logit tests with conflict controls (Table A1, Column 2)
logit proxyconflict asymmetricnuke symmetricnuke prev10yearmids, cluster(dyadid) or
estimates store proxylogitconflict
outreg2 using appendixa1.doc, append ctitle(Odds ratio) eform

*Logit tests with conflict and state and time controls (Table A1, Column 3)
logit proxyconflict asymmetricnuke symmetricnuke logcaprat atopally leastconstrainedpolity leastconstrainedtrade lncapdist contig anymajorpower igomem prev10yearmids powerprojection personalist1 personalist2 anycolonizer proxy_t proxy_t2 proxy_t3, cluster(dyadid) or
estimates store proxylogitfull
outreg2 using appendixa1.doc, append ctitle(Odds ratio) eform

*Logit tests using proxy conflict onset without censoring and with conflict and state and time controls (Table A1, Column 4)
logit proxyconflictonset asymmetricnuke symmetricnuke logcaprat atopally leastconstrainedpolity leastconstrainedtrade lncapdist contig anymajorpower igomem prev10yearmids powerprojection personalist1 personalist2 anycolonizer proxy_t proxy_t2 proxy_t3, cluster(dyadid) or
estimates store proxylogitfullonset
outreg2 using appendixa1.doc, append ctitle(Odds ratio) eform

*Logit tests using proxy conflict onset with censoring and with conflict and state and time controls (Table A1, Column 5)
logit censored_proxyconflictonset asymmetricnuke symmetricnuke logcaprat atopally leastconstrainedpolity leastconstrainedtrade lncapdist contig anymajorpower igomem prev10yearmids powerprojection personalist1 personalist2 anycolonizer proxy_t proxy_t2 proxy_t3, cluster(dyadid) or
estimates store proxylogitfullonsetcensor
outreg2 using appendixa1.doc, append ctitle(Odds ratio) eform

*Full regression using fixed effects (Table A1, Column 6)
xtlogit proxyconflict asymmetricnuke symmetricnuke logcaprat atopally leastconstrainedpolity leastconstrainedtrade lncapdist contig anymajorpower igomem prev10yearmids powerprojection personalist1 personalist2 i.year, fe
estimates store fefull
outreg2 using appendixa1.doc, append ctitle(Odds ratio) eform

*Full logit tests with additional single-order & interacted Cold War time controls (Table A2, Column 1)
logit proxyconflict asymmetricnuke##coldwar symmetricnuke##coldwar logcaprat atopally leastconstrainedpolity leastconstrainedtrade lncapdist contig anymajorpower igomem prev10yearmids powerprojection personalist1 personalist2 anycolonizer, cluster(dyadid)
outreg2 using appendixa2.doc, replace ctitle(Odds ratio) eform

*Full logit tests excluding India-Pakistan dyad (Table A2, Column 2)
logit proxyconflict asymmetricnuke symmetricnuke logcaprat atopally leastconstrainedpolity leastconstrainedtrade lncapdist contig anymajorpower igomem prev10yearmids powerprojection personalist1 personalist2 anycolonizer if ((ccode1!=750 & ccode1!=770) | (ccode2!=770 & ccode2!=750)), cluster(dyadid)
outreg2 using appendixa2.doc, append ctitle(Odds ratio) eform

*Full logit tests excluding US-USSR dyad (Table A2, Column 3)
logit proxyconflict asymmetricnuke symmetricnuke logcaprat atopally leastconstrainedpolity leastconstrainedtrade lncapdist contig anymajorpower igomem prev10yearmids powerprojection personalist1 personalist2 anycolonizer if (ccode1!=2 & ccode2!=365), cluster(dyadid)
outreg2 using appendixa2.doc, append ctitle(Odds ratio) eform

*Full logit tests excluding individual nuclear-armed states (Table A3)

	*Excluding United States
	logit proxyconflict asymmetricnuke symmetricnuke logcaprat atopally leastconstrainedpolity leastconstrainedtrade lncapdist contig anymajorpower igomem prev10yearmids powerprojection personalist1 personalist2 anycolonizer proxy_t proxy_t2 proxy_t3 if ccode1!=2 & ccode2!=2, cluster(dyadid) or
	outreg2 using appendixa3.doc, replace ctitle(Odds ratio) eform

	*Excluding United Kingdom
	logit proxyconflict asymmetricnuke symmetricnuke logcaprat atopally leastconstrainedpolity leastconstrainedtrade lncapdist contig anymajorpower igomem prev10yearmids powerprojection personalist1 personalist2 anycolonizer proxy_t proxy_t2 proxy_t3 if ccode1!=200 & ccode2!=200, cluster(dyadid) or
	outreg2 using appendixa3.doc, append ctitle(Odds ratio) eform

	*Excluding France
	logit proxyconflict asymmetricnuke symmetricnuke logcaprat atopally leastconstrainedpolity leastconstrainedtrade lncapdist contig anymajorpower igomem prev10yearmids powerprojection personalist1 personalist2 anycolonizer proxy_t proxy_t2 proxy_t3 if ccode1!=220 & ccode2!=220, cluster(dyadid) or
	outreg2 using appendixa3.doc, append ctitle(Odds ratio) eform
	
	*Excluding Soviet Union/Russia
	logit proxyconflict asymmetricnuke symmetricnuke logcaprat atopally leastconstrainedpolity leastconstrainedtrade lncapdist contig anymajorpower igomem prev10yearmids powerprojection personalist1 personalist2 anycolonizer proxy_t proxy_t2 proxy_t3 if ccode1!=365 & ccode2!=365, cluster(dyadid) or
	outreg2 using appendixa3.doc, append ctitle(Odds ratio) eform
	
	*Excluding South Africa
	logit proxyconflict asymmetricnuke symmetricnuke logcaprat atopally leastconstrainedpolity leastconstrainedtrade lncapdist contig anymajorpower igomem prev10yearmids powerprojection personalist1 personalist2 anycolonizer proxy_t proxy_t2 proxy_t3 if ccode1!=560 & ccode2!=560, cluster(dyadid) or
	outreg2 using appendixa3.doc, append ctitle(Odds ratio) eform
	
	*Excluding Israel
	logit proxyconflict asymmetricnuke symmetricnuke logcaprat atopally leastconstrainedpolity leastconstrainedtrade lncapdist contig anymajorpower igomem prev10yearmids powerprojection personalist1 personalist2 anycolonizer proxy_t proxy_t2 proxy_t3 if ccode1!=666 & ccode2!=666, cluster(dyadid) or
	outreg2 using appendixa3.doc, append ctitle(Odds ratio) eform
	
	*Excluding China
	logit proxyconflict asymmetricnuke symmetricnuke logcaprat atopally leastconstrainedpolity leastconstrainedtrade lncapdist contig anymajorpower igomem prev10yearmids powerprojection personalist1 personalist2 anycolonizer proxy_t proxy_t2 proxy_t3 if ccode1!=710 & ccode2!=710, cluster(dyadid) or
	outreg2 using appendixa3.doc, append ctitle(Odds ratio) eform
	
	*Excluding North Korea
	logit proxyconflict asymmetricnuke symmetricnuke logcaprat atopally leastconstrainedpolity leastconstrainedtrade lncapdist contig anymajorpower igomem prev10yearmids powerprojection personalist1 personalist2 anycolonizer proxy_t proxy_t2 proxy_t3 if ccode1!=731 & ccode2!=731, cluster(dyadid) or
	outreg2 using appendixa3.doc, append ctitle(Odds ratio) eform
	
	*Excluding India
	logit proxyconflict asymmetricnuke symmetricnuke logcaprat atopally leastconstrainedpolity leastconstrainedtrade lncapdist contig anymajorpower igomem prev10yearmids powerprojection personalist1 personalist2 anycolonizer proxy_t proxy_t2 proxy_t3 if ccode1!=750 & ccode2!=750, cluster(dyadid) or
	outreg2 using appendixa3.doc, append ctitle(Odds ratio) eform
	
	*Excluding Pakistan
	logit proxyconflict asymmetricnuke symmetricnuke logcaprat atopally leastconstrainedpolity leastconstrainedtrade lncapdist contig anymajorpower igomem prev10yearmids powerprojection personalist1 personalist2 anycolonizer proxy_t proxy_t2 proxy_t3 if ccode1!=770 & ccode2!=770, cluster(dyadid) or
	outreg2 using appendixa3.doc, append ctitle(Odds ratio) eform


*Full regressions using fixed effects and proxy conflict presence (Table A4, Column 1)
xtlogit proxyconflict asymmetricnuke symmetricnuke logcaprat atopally leastconstrainedpolity leastconstrainedtrade lncapdist contig anymajorpower igomem prev10yearmids powerprojection personalist1 personalist2 anycolonizer i.year, fe 
outreg2 using appendixa4.doc, replace ctitle(Odds ratio) eform
testparm i.year 

*Full regressions using fixed effects and proxy conflict onset (Table A4, Column 2)
xtlogit proxyconflictonset asymmetricnuke symmetricnuke logcaprat atopally leastconstrainedpolity leastconstrainedtrade lncapdist contig anymajorpower igomem prev10yearmids powerprojection personalist1 personalist2 anycolonizer i.year, fe 
outreg2 using appendixa4.doc, append ctitle(Odds ratio) eform
testparm i.year 

*Full regressions using fixed effects and proxy conflict onset censored (Table A4, Column 3)
xtlogit censored_proxyconflictonset asymmetricnuke symmetricnuke logcaprat atopally leastconstrainedpolity leastconstrainedtrade lncapdist contig anymajorpower igomem prev10yearmids powerprojection personalist1 personalist2 anycolonizer i.year, fe 
outreg2 using appendixa4.doc, append ctitle(Odds ratio) eform
testparm i.year 

*Rare events logit test  (Table A4, Column 4)
relogit proxyconflict asymmetricnuke symmetricnuke logcaprat atopally leastconstrainedpolity leastconstrainedtrade lncapdist contig anymajorpower igomem prev10yearmids powerprojection personalist1 personalist2 anycolonizer proxy_t proxy_t2 proxy_t3, cluster(dyadid)
outreg2 using appendixa4.doc, append ctitle(Odds ratio) eform


*Full logit tests using Singh & Way codings (Table A5, Column 1)
logit proxyconflict asymmetricnukeSW symmetricnukeSW logcaprat atopally leastconstrainedpolity leastconstrainedtrade lncapdist contig anymajorpower igomem prev10yearmids powerprojection personalist1 personalist2 anycolonizer proxy_t proxy_t2 proxy_t3, cluster(dyadid)
outreg2 using appendixa5.doc, replace ctitle(Odds ratio) eform

*Full logit tests using Beckley power measure (Table A5, Column 2)
logit proxyconflict asymmetricnuke symmetricnuke logbeckleycaprat atopally leastconstrainedpolity leastconstrainedtrade lncapdist contig anymajorpower igomem prev10yearmids powerprojection personalist1 personalist2 anycolonizer proxy_t proxy_t2 proxy_t3, cluster(dyadid)
outreg2 using appendixa5.doc, append ctitle(Odds ratio) eform

*Full logit tests using Beckley power measure and controlling for MID presence (Table A5, Column 3)
logit proxyconflict asymmetricnuke symmetricnuke logbeckleycaprat atopally leastconstrainedpolity leastconstrainedtrade lncapdist contig anymajorpower igomem prev10yearmids powerprojection personalist1 personalist2 anycolonizer mid proxy_t proxy_t2 proxy_t3, cluster(dyadid)
outreg2 using appendixa5.doc, append ctitle(Odds ratio) eform

*Full logit tests using Beckley power measure and controlling for MID presence and interstate rivalry (Table A5, Column 4)
logit proxyconflict asymmetricnuke symmetricnuke logbeckleycaprat atopally leastconstrainedpolity leastconstrainedtrade lncapdist contig anymajorpower igomem prev10yearmids powerprojection personalist1 personalist2 anycolonizer mid rivalry proxy_t proxy_t2 proxy_t3, cluster(dyadid)
outreg2 using appendixa5.doc, append ctitle(Odds ratio) eform

*Checkrob test (Table A6, with results analyzed in Excel)
checkrob 5 14: logit proxyconflict asymmetricnuke symmetricnuke proxy_t proxy_t2 proxy_t3 logbeckleycaprat atopally leastconstrainedpolity leastconstrainedtrade lncapdist contig anymajorpower igomem prev10yearmids powerprojection personalist1 personalist2 anycolonizer rivalry, cluster(dyadid)

*Creating checkrob figures (Figure A1 and Figure A2). Must import results of checkrob test and calculate Z-scores
histogram asymmetric, color(black) xline(3.72) xscale(range(0 14)) xlabel(0(2)14) xtitle("Z-Score") graphregion(color(white)) bgcolor(white)
histogram symmetric, color(black) xline(3.72) xscale(range(0 14)) xlabel(0(2)14) xtitle("Z-Score") graphregion(color(white)) bgcolor(white)

*Full logit tests using alternative measures of nuclear capabilities ratios from Logan 2022 (Table A7)
logit proxyconflict total_stk_ratio logcaprat atopally leastconstrainedpolity leastconstrainedtrade lncapdist contig anymajorpower igomem powerprojection personalist1 personalist2 anycolonizer prev10yearmids proxy_t proxy_t2 proxy_t3, cluster(dyadid) or
estimates store stk_ratio
outreg2 using appendixa7.doc, replace ctitle(Odds ratio) eform

logit proxyconflict total_strat_stk_ratio logcaprat atopally leastconstrainedpolity leastconstrainedtrade lncapdist contig anymajorpower igomem powerprojection personalist1 personalist2 anycolonizer prev10yearmids proxy_t proxy_t2 proxy_t3, cluster(dyadid) or
estimates store strat_stk_ratio
outreg2 using appendixa7.doc, append ctitle(Odds ratio) eform

logit proxyconflict strat_dvs_ratio logcaprat atopally leastconstrainedpolity leastconstrainedtrade lncapdist contig anymajorpower igomem powerprojection personalist1 personalist2 anycolonizer prev10yearmids proxy_t proxy_t2 proxy_t3, cluster(dyadid) or
estimates store strat_dvs_ratio
outreg2 using appendixa7.doc, append ctitle(Odds ratio) eform

logit proxyconflict strat_loaded_ratio logcaprat atopally leastconstrainedpolity leastconstrainedtrade lncapdist contig anymajorpower igomem powerprojection personalist1 personalist2 anycolonizer prev10yearmids proxy_t proxy_t2 proxy_t3, cluster(dyadid) or
estimates store strat_loaded_ratio
outreg2 using appendixa7.doc, append ctitle(Odds ratio) eform

logit proxyconflict total_tng_ratio logcaprat atopally leastconstrainedpolity leastconstrainedtrade lncapdist contig anymajorpower igomem powerprojection personalist1 personalist2 anycolonizer prev10yearmids proxy_t proxy_t2 proxy_t3, cluster(dyadid) or
estimates store total_tng_ratio
outreg2 using appendixa7.doc, append ctitle(Odds ratio) eform

logit proxyconflict EMTratio logcaprat atopally leastconstrainedpolity leastconstrainedtrade lncapdist contig anymajorpower igomem powerprojection personalist1 personalist2 anycolonizer prev10yearmids proxy_t proxy_t2 proxy_t3, cluster(dyadid) or
estimates store EMTratio
outreg2 using appendixa7.doc, append ctitle(Odds ratio) eform

logit proxyconflict CMPratio logcaprat atopally leastconstrainedpolity leastconstrainedtrade lncapdist contig anymajorpower igomem powerprojection personalist1 personalist2 anycolonizer prev10yearmids proxy_t proxy_t2 proxy_t3, cluster(dyadid) or
estimates store CMPratio
outreg2 using appendixa7.doc, append ctitle(Odds ratio) eform

*South Africa Tests (Figure A3)
bysort year: egen SAF_average_proxyconflict = mean(proxyconflict) if ccode1==560 | ccode2==560
bysort year: egen SAFRICA_average_proxyconflict = mean(proxyconflict) if ((ccode1>539 & ccode1<600) | (ccode2>539 & ccode2<600)) & (ccode1!=560 | ccode2!=560)
bysort year: egen NOMENA_average_proxyconflict = mean(proxyconflict) if ((ccode1>399 & ccode1<600) | (ccode2>399 & ccode2<600)) & (ccode1!=560 | ccode2!=560)
bysort year: egen AFRICA_average_proxyconflict = mean(proxyconflict) if ((ccode1>399 & ccode1<627) | (ccode2>399 & ccode2<627) | ccode1==651 | ccode2==651) & (ccode1!=560 | ccode2!=560)
twoway line SAF_average_proxyconflict AFRICA_average_proxyconflict NOMENA_average_proxyconflict SAFRICA_average_proxyconflict year if year>1974, sort







